package com.cloudft.http.models;

import java.io.Serializable;

/**
 * HTTP Response model class with getter and setter methods for url, response, timeStamp
 * timeToLive
 */

public class HTTPResponse implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String url;
	private String response;
	private long timeStamp;
	private long timeToLive;
	private boolean isFromCache;
	
	
	public String getResponse() {
		return response;
	}
	
	public void setResponse(String response) {
		this.response = response;
	}
	
	public long getTimeStamp() {
		return timeStamp;
	}
	
	public void setTimeStamp(Long timeStamp) {
		this.timeStamp = timeStamp;
	}
	
	public String getUrl() {
		return url;
	}
	
	public void setUrl(String url) {
		this.url = url;
	}
	
	public long getTimeToLive() {
		return timeToLive;
	}
	
	public void setTimeToLive(Long timeToLive) {
		this.timeToLive = timeToLive;
	}
	
	public void setFromCache(boolean isFromCache) {
		this.isFromCache = isFromCache;
	}
	
	public boolean isFromCache() {
		return isFromCache;
	}
}
